import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./utils/rem.js";
import "./utils/index.js";
import "./utils/filter.js";
import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/css/swiper.css";
import ElementUI from "element-ui";
// import ElementPlus from "element-plus";
import 'element-ui/lib/index';
// import 'element-plus/dist/index.css';
import './styles/element-variables.scss'; //引入element-ui样式
import highcharts from "highcharts";
import VueHighcharts from "vue-highcharts";
import highcharts3d from "highcharts/highcharts-3d";
import tagCloud from "v-tag-cloud";
import webSetInfo from "./server/webSetInfo";
import {axios} from "./server/axios";
import {axios_token} from "./server/axios_token";
import VueParticles from "vue-particles";
import animated from "animate.css";
import mapboxgl from "mapbox-gl";
import "mapbox-gl/dist/mapbox-gl.css";
import MapboxWorker from "worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker";
mapboxgl.workerClass = MapboxWorker; // Wire up loaded worker to be used instead of the default
import * as turf from '@turf/turf'

Vue.prototype.$webSetInfo = webSetInfo;
Vue.prototype.$axios_token = axios_token;
Vue.prototype.$axios = axios;

Vue.use(animated);
Vue.use(tagCloud);
Vue.use(VueHighcharts);
Vue.use(VueParticles);
highcharts3d(highcharts);
Vue.use(VueAwesomeSwiper);
Vue.config.productionTip = false;
Vue.use(ElementUI);
// Vue.use(ElementPlus);


new Vue({
    ElementUI,
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");
